<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<title>热门现金贷</title>
	<script type="text/javascript" src="/assets/js/rem.js"></script>
	<link href="/layui/css/layui.css" rel="stylesheet"/>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
			box-sizing: border-box;
		}
		input[type="submit"], input[type="reset"], input[type="button"], input {
			-webkit-appearance: none;
			resize: none;
			outline: none;
		}
		body{
			width: 100%;
			max-width: 640px;
			height: 100%;
			margin: 0 auto;
		}
		.pic{
			width: 100%;
		}
		.box{
			width: 100%;
			height: 2rem;
			background: #f55c52;
			position: fixed;
			bottom: 0;
			left: 0;
			text-align: center;
		}
		#mobile{
			height: 0.6rem;
			background: #fff url(/html/daikuan/img/phone.png) no-repeat 12px center;
			-webkit-background-size: 0.3rem;
			background-size: 0.3rem;
			border-radius: 5px;
			border: none;
			outline: none;
			width: 55%;
			padding: 0 10px 0 0.7rem;
			font-size: 0.24rem;
			margin-top: 0.7rem;
		}
		#register{
			width: 24%;
			background: #ffec6b;
			outline: none;
			border: none;
			height: 0.6rem;
			border-radius: 5px;
			color: #f55c52;
			font-size: 0.26rem;
		}
	</style>
</head>
<body>
	<img src="/html/daikuan/img/youqiandai.jpg" class="pic">
	<div class="box">
		<input type="number" id="mobile" name="" placeholder="请输入您的手机号">
		<button id="register">点击注册</button>
	</div>
	<script src="/assets/js/building/jquery-1.11.1.min.js"></script>
	<script src="/layui/lay/dest/layui.all.js"></script>
	<script src="/layui/custom.js"></script>
	<script>
		var qd = "<?php echo $qd;?>";
		$("#register").click(function () {
			var mobile = $("#mobile").val();
			if(mobile == ''){
				layer.msg("请填写手机号！");
				return false;
			}
			var myreg = /^((\d{3}-\d{8}|\d{4}-\d{7,8})|(1[3|5|7|8][0-9]{9}))$/;
			if(!myreg.test(mobile)){
				layer.msg("手机号格式不正确");
				return false;
			}
			$.popPage({
						url: '/Activity/tanchuang2',
						title: "登录",
						data:{"mobile":mobile}
					},
					{
						height:$(window).height()
					});
		});
	</script>
</body>
</html>